
require("recursos")
require("player_random")
require("GS_SelectionScreen")
require("fisicas")

function love.load()

	math.randomseed( os.time() )
	math.random()
	GS_SelectionScreen = 0

	gameObjects = {}
	gameObjects["player_random"] = {}
	gameObjects["ball"] = {}
	gameObjects["player"] = {}
	gameObjects["player_pnj"] = {}

	
	cImg()
	setFont()
	quadsCreate()
	pantallaJuego = GS_SelectionScreen
	select = {}
	x,y =love.window.getDimensions( )
	select =  GS_SS.create( x , y , 10)
	
	
end

function love.update(dt)
	love.timer.sleep( 0.04 )
	if pantallaJuego == GS_SelectionScreen then
		select:update(dt)
	end 

end

function love.draw(  )
	if pantallaJuego == GS_SelectionScreen then
		select:draw()
	end
end